package proyectobdii;

import java.util.LinkedList;

public class Diff_Procedure {

    private DataBase databasei;
    private DataBase databaseii;
    private LinkedList<Procedure> commonProcedure;
    private LinkedList<Procedure> exclusiveProcedureDBI;
    private LinkedList<Procedure> exclusiveProcedureDBII;
    private LinkedList<Procedure> differentProcedure;
	
    public Diff_Procedure(DataBase databasei, DataBase databaseii, LinkedList<Procedure> commonProcedure,
            			LinkedList<Procedure> exclusiveProcedureDBI,
            			LinkedList<Procedure> exclusiveProcedureDBII,
            			LinkedList<Procedure> differentProcedure){
		this.databasei = databasei;
		this.databaseii = databaseii;
                this.commonProcedure = commonProcedure;
                this.exclusiveProcedureDBI = exclusiveProcedureDBI;
                this.exclusiveProcedureDBII = exclusiveProcedureDBII;
                this.differentProcedure = differentProcedure;
		
    }

    public LinkedList<Procedure> getCommonProcedure() {
        return commonProcedure;
    }

    public void setCommonProcedure(LinkedList<Procedure> commonProcedure) {
	this.commonProcedure = commonProcedure;
    }

    public LinkedList<Procedure> getExclusiveProcedureDBI() {
	return exclusiveProcedureDBI;
    }

    public void setExclusiveProcedureDBI(LinkedList<Procedure> exclusiveProcedureDBI) {
	this.exclusiveProcedureDBI = exclusiveProcedureDBI;
    }

    public LinkedList<Procedure> getExclusiveProcedureDBII() {
	return exclusiveProcedureDBII;
    }

    public void setExclusiveProcedureDBII(
        LinkedList<Procedure> exclusiveProcedureDBII) {
	this.exclusiveProcedureDBII = exclusiveProcedureDBII;
    }

    public LinkedList<Procedure> getDifferentProcedure() {
	return differentProcedure;
    }

    public void setDifferentProcedure(LinkedList<Procedure> differentProcedure) {
        this.differentProcedure = differentProcedure;
    }

    public String getNombreDataBase(int bd){
        if(bd == 1){
            return databasei.getHost() + "/" + databasei.getDataBaseName();
	}else{
            return databaseii.getHost() + "/" + databaseii.getDataBaseName();
	}
    }
}
